package demo3;

//用户消费信息类
public class UserConsum {
    private double cntCalltime; //统计通话时长
    private double cntOnlineFlux; //统计上网流量
    private  double fee; //每月消费金额

    public UserConsum() {
    }

    public UserConsum(double cntCalltime, double cntOnlineFlux, double fee) {
        setCntCalltime(cntCalltime);
        setCntOnlineFlux(cntOnlineFlux);
        setFee(fee);
    }

    public double getCntCalltime() {
        return cntCalltime;
    }

    public double getCntOnlineFlux() {
        return cntOnlineFlux;
    }

    public double getFee() {
        return fee;
    }

    public void setCntCalltime(double cntCalltime) {
        this.cntCalltime = cntCalltime;
    }

    public void setCntOnlineFlux(double cntOnlineFlux) {
        this.cntOnlineFlux = cntOnlineFlux;
    }

    public void setFee(double fee) {
        this.fee = fee;
    }

    //显示（统计通话时长 + 统计上网流量 + 每月消费金额）
    public void UserConsumShow(){
        System.out.println("通话时长:" + getCntCalltime() + "  上网流量：" + getCntOnlineFlux() + "  每月消费：" + getFee());
    }
}
